{% comment %}
  Dispay a table of schedued sesions. The table can be configred as folows:

  hide_event: if set to true the event name will not be displayed (default false)
  hide_track: if set to true the track name will not be displayed (default false)
{% endcomment %}

<table>
<tr>
  {% if not hide_event %}
    <th>Event</th>
  {% endif %}
  {% if not hide_track %}
    <th>Track</th>
  {% endif %}
  <th>Session</th>
  <th>Start Time</th>
  <th>Duration</th>
</tr>
{% for schedule in schedule_list %}
  <tr>
    {% if not hide_event %}
      <td>{{ schedule.track.event }}</td>
    {% endif %}
    {% if not hide_track %}
      <td>{{ schedule.track }}</td>
    {% endif %}
    <td>
      <a href="{% url event_session_detail object_id=schedule.session.id %}">{{ schedule.session }}</a>
    </td>
    <td>{{ schedule.start_time }}</td>
    <td>{{ schedule.session.duration }}</td>
  </tr>
{% endfor %}
</table>
